package com.guli.product.feign;


import com.guli.common.to.SkuFullReductionTo;
import com.guli.common.to.SkuLadderTo;
import com.guli.common.to.SpuBoundTo;
import com.guli.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient("coupon-service")
@Repository
public interface CouponFeign {
    /**
     * 保存积分信息
     * @param spuBoundTo
     * @return
     */
    @PostMapping("coupon/spubounds/save")
    R saveSpuBoundTo(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("coupon/skufullreduction/save")
    R saveSkuFullReductionTo(@RequestBody SkuFullReductionTo skuFullReduction);

    @PostMapping("coupon/skuladder/save")
    R saveSkuLadderTo(@RequestBody SkuLadderTo skuLadderTo);
}
